.class public Lcom/xingbook/paint/PaintGameAct;
.super Lcom/xingbook/park/activity/BaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Lcom/xingbook/paint/view/d;


# instance fields
.field private A:Landroid/widget/SeekBar$OnSeekBarChangeListener;

.field private B:Lcom/xingbook/paint/o;

.field a:[I

.field b:[Landroid/widget/ImageView;

.field c:Landroid/widget/RelativeLayout;

.field d:Landroid/widget/ImageView;

.field e:I

.field f:Lcom/xingbook/c/a;

.field g:Landroid/app/AlertDialog$Builder;

.field h:Lcom/xingbook/paint/view/PaintView;

.field i:Landroid/app/ProgressDialog;

.field private l:I

.field private m:I

.field private n:Landroid/graphics/drawable/GradientDrawable;

.field private o:Landroid/widget/LinearLayout$LayoutParams;

.field private p:Landroid/widget/ImageView;

.field private q:Landroid/widget/SeekBar;

.field private r:I

.field private s:[I

.field private t:Landroid/widget/LinearLayout;

.field private u:Landroid/view/View;

.field private v:Landroid/widget/GridView;

.field private w:Landroid/widget/TextView;

.field private x:Landroid/view/View;

.field private y:J

.field private z:Landroid/view/View$OnClickListener;


# direct methods
.method public constructor <init>()V
    .locals 2

    const/4 v1, 0x0

    invoke-direct {p0}, Lcom/xingbook/park/activity/BaseActivity;-><init>()V

    const/16 v0, 0xc

    new-array v0, v0, [I

    fill-array-data v0, :array_0

    iput-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->a:[I

    iput v1, p0, Lcom/xingbook/paint/PaintGameAct;->e:I

    iput v1, p0, Lcom/xingbook/paint/PaintGameAct;->m:I

    const/4 v0, 0x4

    iput v0, p0, Lcom/xingbook/paint/PaintGameAct;->r:I

    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lcom/xingbook/paint/PaintGameAct;->y:J

    new-instance v0, Lcom/xingbook/paint/c;

    invoke-direct {v0, p0}, Lcom/xingbook/paint/c;-><init>(Lcom/xingbook/paint/PaintGameAct;)V

    iput-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->z:Landroid/view/View$OnClickListener;

    new-instance v0, Lcom/xingbook/paint/f;

    invoke-direct {v0, p0}, Lcom/xingbook/paint/f;-><init>(Lcom/xingbook/paint/PaintGameAct;)V

    iput-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->A:Landroid/widget/SeekBar$OnSeekBarChangeListener;

    new-instance v0, Lcom/xingbook/paint/o;

    invoke-direct {v0, p0}, Lcom/xingbook/paint/o;-><init>(Lcom/xingbook/paint/PaintGameAct;)V

    iput-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->B:Lcom/xingbook/paint/o;

    return-void

    :array_0
    .array-data 0x4
        0xbt 0x5ct 0xfft 0xfft
        0x20t 0x0t 0xe6t 0xfft
        0x40t 0xd0t 0xfft 0xfft
        0x0t 0xb4t 0xf8t 0xfft
        0x2ct 0xdct 0xb3t 0xfft
        0x11t 0xc6t 0x7et 0xfft
        0xcct 0x81t 0x0t 0xfft
        0x8ft 0x2ft 0xat 0xfft
        0xa1t 0x91t 0xf0t 0xfft
        0x86t 0x19t 0xb6t 0xfft
        0xfft 0xfft 0xfft 0xfft
        0x0t 0x0t 0x0t 0xfft
    .end array-data
.end method

.method static synthetic a(Lcom/xingbook/paint/PaintGameAct;)I
    .locals 1

    iget v0, p0, Lcom/xingbook/paint/PaintGameAct;->r:I

    return v0
.end method

.method static synthetic a(Lcom/xingbook/paint/PaintGameAct;I)V
    .locals 0

    iput p1, p0, Lcom/xingbook/paint/PaintGameAct;->m:I

    return-void
.end method

.method private b()V
    .locals 4

    invoke-static {}, Landroid/os/Environment;->getExternalStorageState()Ljava/lang/String;

    move-result-object v0

    const-string v1, "mounted"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    new-instance v0, Landroid/app/AlertDialog$Builder;

    invoke-direct {v0, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const-string v1, "\u8bf7\u63d2\u5165\u5b58\u50a8\u5361"

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const-string v1, "\u63d0\u793a"

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const-string v1, "\u786e\u8ba4"

    new-instance v2, Lcom/xingbook/paint/k;

    invoke-direct {v2, p0}, Lcom/xingbook/paint/k;-><init>(Lcom/xingbook/paint/PaintGameAct;)V

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    :goto_0
    return-void

    :cond_0
    new-instance v0, Landroid/app/AlertDialog$Builder;

    invoke-direct {v0, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->g:Landroid/app/AlertDialog$Builder;

    new-instance v0, Landroid/widget/EditText;

    invoke-direct {v0, p0}, Landroid/widget/EditText;-><init>(Landroid/content/Context;)V

    const-string v1, "\u8bf7\u8f93\u5165\u56fe\u7247\u540d\u79f0"

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/xingbook/paint/PaintGameAct;->g:Landroid/app/AlertDialog$Builder;

    invoke-virtual {v1, v0}, Landroid/app/AlertDialog$Builder;->setView(Landroid/view/View;)Landroid/app/AlertDialog$Builder;

    iget-object v1, p0, Lcom/xingbook/paint/PaintGameAct;->g:Landroid/app/AlertDialog$Builder;

    const-string v2, "\u4fdd\u5b58"

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    iget-object v1, p0, Lcom/xingbook/paint/PaintGameAct;->g:Landroid/app/AlertDialog$Builder;

    const-string v2, "\u786e\u8ba4"

    new-instance v3, Lcom/xingbook/paint/l;

    invoke-direct {v3, p0, v0}, Lcom/xingbook/paint/l;-><init>(Lcom/xingbook/paint/PaintGameAct;Landroid/widget/EditText;)V

    invoke-virtual {v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->g:Landroid/app/AlertDialog$Builder;

    const-string v1, "\u53d6\u6d88"

    new-instance v2, Lcom/xingbook/paint/n;

    invoke-direct {v2, p0}, Lcom/xingbook/paint/n;-><init>(Lcom/xingbook/paint/PaintGameAct;)V

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->g:Landroid/app/AlertDialog$Builder;

    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    goto :goto_0
.end method

.method static synthetic b(Lcom/xingbook/paint/PaintGameAct;I)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/xingbook/paint/PaintGameAct;->c(I)V

    return-void
.end method

.method static synthetic b(Lcom/xingbook/paint/PaintGameAct;)[I
    .locals 1

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->s:[I

    return-object v0
.end method

.method static synthetic c(Lcom/xingbook/paint/PaintGameAct;)I
    .locals 1

    iget v0, p0, Lcom/xingbook/paint/PaintGameAct;->l:I

    return v0
.end method

.method private c()V
    .locals 4

    :try_start_0
    new-instance v0, Landroid/content/IntentFilter;

    const-string v1, "android.intent.action.MEDIA_SCANNER_STARTED"

    invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    const-string v1, "android.intent.action.MEDIA_SCANNER_FINISHED"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    const-string v1, "file"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addDataScheme(Ljava/lang/String;)V

    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.MEDIA_MOUNTED"

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "file://"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    sget-object v3, Lcom/xingbook/c/c;->v:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->sendBroadcast(Landroid/content/Intent;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method private c(I)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    invoke-virtual {v0}, Lcom/xingbook/paint/view/PaintView;->getCurrentPainter()I

    move-result v0

    const/4 v1, 0x5

    if-ne v0, v1, :cond_0

    iget v0, p0, Lcom/xingbook/paint/PaintGameAct;->l:I

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->a(I)V

    :cond_0
    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    invoke-virtual {v0, p1}, Lcom/xingbook/paint/view/PaintView;->setPenColor(I)V

    return-void
.end method

.method static synthetic d(Lcom/xingbook/paint/PaintGameAct;)Landroid/widget/LinearLayout$LayoutParams;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->o:Landroid/widget/LinearLayout$LayoutParams;

    return-object v0
.end method

.method private d()V
    .locals 2

    const v0, 0x7f0a01b5

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    invoke-virtual {v1}, Lcom/xingbook/paint/view/PaintView;->e()Z

    move-result v1

    invoke-virtual {v0, v1}, Landroid/view/View;->setSelected(Z)V

    const v0, 0x7f0a01b4

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    invoke-virtual {v1}, Lcom/xingbook/paint/view/PaintView;->f()Z

    move-result v1

    invoke-virtual {v0, v1}, Landroid/view/View;->setSelected(Z)V

    return-void
.end method

.method static synthetic e(Lcom/xingbook/paint/PaintGameAct;)Landroid/widget/ImageView;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->p:Landroid/widget/ImageView;

    return-object v0
.end method

.method private f()V
    .locals 6

    const/4 v5, 0x5

    const/4 v4, 0x0

    const/16 v3, 0x8

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->t:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->t:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :cond_0
    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->u:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->u:Landroid/view/View;

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    :cond_1
    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    invoke-virtual {v0}, Lcom/xingbook/paint/view/PaintView;->getCurrentPainter()I

    move-result v0

    if-ne v0, v5, :cond_2

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->s:[I

    const/4 v1, 0x6

    aget v1, v0, v1

    const/4 v0, -0x1

    iget-object v2, p0, Lcom/xingbook/paint/PaintGameAct;->v:Landroid/widget/GridView;

    invoke-virtual {v2, v3}, Landroid/widget/GridView;->setVisibility(I)V

    iget-object v2, p0, Lcom/xingbook/paint/PaintGameAct;->w:Landroid/widget/TextView;

    const-string v3, "\u8bbe\u7f6e\u6a61\u76ae\u64e6\u5927\u5c0f"

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_0
    iget-object v3, p0, Lcom/xingbook/paint/PaintGameAct;->o:Landroid/widget/LinearLayout$LayoutParams;

    iget v2, p0, Lcom/xingbook/paint/PaintGameAct;->r:I

    if-ge v1, v2, :cond_3

    add-int/lit8 v2, v1, 0x3

    :goto_1
    iput v2, v3, Landroid/widget/LinearLayout$LayoutParams;->width:I

    iget-object v3, p0, Lcom/xingbook/paint/PaintGameAct;->o:Landroid/widget/LinearLayout$LayoutParams;

    iget v2, p0, Lcom/xingbook/paint/PaintGameAct;->r:I

    if-ge v1, v2, :cond_4

    add-int/lit8 v2, v1, 0x3

    :goto_2
    iput v2, v3, Landroid/widget/LinearLayout$LayoutParams;->height:I

    iget-object v2, p0, Lcom/xingbook/paint/PaintGameAct;->p:Landroid/widget/ImageView;

    iget-object v3, p0, Lcom/xingbook/paint/PaintGameAct;->o:Landroid/widget/LinearLayout$LayoutParams;

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v2, p0, Lcom/xingbook/paint/PaintGameAct;->n:Landroid/graphics/drawable/GradientDrawable;

    invoke-virtual {v2, v0}, Landroid/graphics/drawable/GradientDrawable;->setColor(I)V

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    invoke-virtual {v0}, Lcom/xingbook/paint/view/PaintView;->getCurrentPainter()I

    move-result v0

    if-ne v0, v5, :cond_5

    mul-int/lit16 v0, v1, 0x3e8

    int-to-float v0, v0

    iget v1, p0, Lcom/xingbook/paint/PaintGameAct;->r:I

    int-to-float v1, v1

    const/high16 v2, 0x3fc0

    mul-float/2addr v1, v2

    div-float/2addr v0, v1

    float-to-int v0, v0

    :goto_3
    iget-object v1, p0, Lcom/xingbook/paint/PaintGameAct;->q:Landroid/widget/SeekBar;

    invoke-virtual {v1, v0}, Landroid/widget/SeekBar;->setProgress(I)V

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->t:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    return-void

    :cond_2
    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    invoke-virtual {v0}, Lcom/xingbook/paint/view/PaintView;->getBrushSize()I

    move-result v1

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    invoke-virtual {v0}, Lcom/xingbook/paint/view/PaintView;->getPenColor()I

    move-result v0

    iget-object v2, p0, Lcom/xingbook/paint/PaintGameAct;->v:Landroid/widget/GridView;

    invoke-virtual {v2, v4}, Landroid/widget/GridView;->setVisibility(I)V

    iget-object v2, p0, Lcom/xingbook/paint/PaintGameAct;->w:Landroid/widget/TextView;

    const-string v3, "\u8bbe\u7f6e\u753b\u7b14\u989c\u8272\u548c\u5927\u5c0f"

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    :cond_3
    move v2, v1

    goto :goto_1

    :cond_4
    move v2, v1

    goto :goto_2

    :cond_5
    mul-int/lit16 v0, v1, 0x3e8

    iget v1, p0, Lcom/xingbook/paint/PaintGameAct;->r:I

    div-int/2addr v0, v1

    goto :goto_3
.end method

.method static synthetic f(Lcom/xingbook/paint/PaintGameAct;)V
    .locals 0

    invoke-direct {p0}, Lcom/xingbook/paint/PaintGameAct;->c()V

    return-void
.end method

.method static synthetic g(Lcom/xingbook/paint/PaintGameAct;)V
    .locals 0

    invoke-direct {p0}, Lcom/xingbook/paint/PaintGameAct;->d()V

    return-void
.end method

.method private g()Z
    .locals 3

    const/16 v2, 0x8

    const/4 v0, 0x1

    iget-object v1, p0, Lcom/xingbook/paint/PaintGameAct;->t:Landroid/widget/LinearLayout;

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->getVisibility()I

    move-result v1

    if-nez v1, :cond_0

    iget-object v1, p0, Lcom/xingbook/paint/PaintGameAct;->t:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :goto_0
    return v0

    :cond_0
    iget-object v1, p0, Lcom/xingbook/paint/PaintGameAct;->u:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getVisibility()I

    move-result v1

    if-nez v1, :cond_1

    iget-object v1, p0, Lcom/xingbook/paint/PaintGameAct;->u:Landroid/view/View;

    invoke-virtual {v1, v2}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method static synthetic h(Lcom/xingbook/paint/PaintGameAct;)I
    .locals 1

    iget v0, p0, Lcom/xingbook/paint/PaintGameAct;->m:I

    return v0
.end method

.method private h()V
    .locals 6

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iget v2, p0, Lcom/xingbook/paint/PaintGameAct;->m:I

    const/16 v3, 0xa

    if-le v2, v3, :cond_0

    iget-wide v2, p0, Lcom/xingbook/paint/PaintGameAct;->y:J

    sub-long v2, v0, v2

    const-wide/16 v4, 0xbb8

    cmp-long v2, v2, v4

    if-lez v2, :cond_0

    iput-wide v0, p0, Lcom/xingbook/paint/PaintGameAct;->y:J

    const-string v0, "\u8fd8\u6ca1\u6709\u4fdd\u5b58\u66f4\u6539\u54e6\uff0c\u518d\u6b21\u70b9\u51fb\u8fd4\u56de\u9000\u51fa"

    const/4 v1, 0x1

    invoke-static {p0, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    :goto_0
    return-void

    :cond_0
    const/4 v0, 0x5

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->d(I)V

    sget-object v0, Lcom/xingbook/c/o;->h:Ljava/util/concurrent/ExecutorService;

    new-instance v1, Lcom/xingbook/paint/d;

    invoke-direct {v1, p0}, Lcom/xingbook/paint/d;-><init>(Lcom/xingbook/paint/PaintGameAct;)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    goto :goto_0
.end method

.method static synthetic i(Lcom/xingbook/paint/PaintGameAct;)Landroid/graphics/drawable/GradientDrawable;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->n:Landroid/graphics/drawable/GradientDrawable;

    return-object v0
.end method

.method static synthetic j(Lcom/xingbook/paint/PaintGameAct;)Z
    .locals 1

    invoke-direct {p0}, Lcom/xingbook/paint/PaintGameAct;->g()Z

    move-result v0

    return v0
.end method

.method static synthetic k(Lcom/xingbook/paint/PaintGameAct;)Lcom/xingbook/paint/o;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->B:Lcom/xingbook/paint/o;

    return-object v0
.end method


# virtual methods
.method public a()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->i:Landroid/app/ProgressDialog;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->i:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->i:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V

    :cond_0
    return-void
.end method

.method public a(I)V
    .locals 5

    const/4 v1, 0x0

    const/4 v4, 0x5

    iget v0, p0, Lcom/xingbook/paint/PaintGameAct;->l:I

    if-ne v0, p1, :cond_0

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    invoke-virtual {v0}, Lcom/xingbook/paint/view/PaintView;->getCurrentPainter()I

    move-result v0

    if-ne v0, v4, :cond_1

    :cond_0
    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    invoke-virtual {v0, p1}, Lcom/xingbook/paint/view/PaintView;->setCurrentPainterType(I)V

    if-ltz p1, :cond_1

    move v0, v1

    :goto_0
    const/4 v2, 0x6

    if-lt v0, v2, :cond_4

    :cond_1
    if-eq p1, v4, :cond_2

    iput p1, p0, Lcom/xingbook/paint/PaintGameAct;->l:I

    :cond_2
    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    invoke-virtual {v0}, Lcom/xingbook/paint/view/PaintView;->getCurrentPainter()I

    move-result v0

    if-eq v0, v4, :cond_3

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    iget-object v1, p0, Lcom/xingbook/paint/PaintGameAct;->s:[I

    aget v1, v1, p1

    invoke-virtual {v0, v1}, Lcom/xingbook/paint/view/PaintView;->setBrushSize(I)V

    :cond_3
    invoke-direct {p0}, Lcom/xingbook/paint/PaintGameAct;->f()V

    return-void

    :cond_4
    if-ne v0, p1, :cond_5

    iget-object v2, p0, Lcom/xingbook/paint/PaintGameAct;->b:[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    const/4 v3, 0x1

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setSelected(Z)V

    :goto_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_5
    iget-object v2, p0, Lcom/xingbook/paint/PaintGameAct;->b:[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    invoke-virtual {v2, v1}, Landroid/widget/ImageView;->setSelected(Z)V

    goto :goto_1
.end method

.method public a(Ljava/lang/String;)V
    .locals 2

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->i:Landroid/app/ProgressDialog;

    if-nez v0, :cond_0

    new-instance v0, Landroid/app/ProgressDialog;

    invoke-direct {v0, p0}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->i:Landroid/app/ProgressDialog;

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->i:Landroid/app/ProgressDialog;

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setCanceledOnTouchOutside(Z)V

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->i:Landroid/app/ProgressDialog;

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setCancelable(Z)V

    :cond_0
    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->i:Landroid/app/ProgressDialog;

    invoke-virtual {v0, p1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->i:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->isShowing()Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->i:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->show()V

    :cond_1
    return-void
.end method

.method public b(I)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    const/4 v1, 0x3

    invoke-virtual {v0, v1, p1}, Lcom/xingbook/paint/view/PaintView;->a(II)V

    return-void
.end method

.method public e()Ljava/lang/String;
    .locals 2

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "\u661f\u5b9d\u753b\u677f"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 7

    const v6, 0x7f0a01dc

    const v5, 0x7f0a01db

    const/4 v4, 0x1

    const/16 v3, 0x8

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->f:Lcom/xingbook/c/a;

    invoke-virtual {v0, v2}, Lcom/xingbook/c/a;->a(I)V

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    invoke-direct {p0}, Lcom/xingbook/paint/PaintGameAct;->h()V

    goto :goto_0

    :sswitch_1
    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    invoke-virtual {v0}, Lcom/xingbook/paint/view/PaintView;->b()V

    iput v2, p0, Lcom/xingbook/paint/PaintGameAct;->m:I

    invoke-direct {p0}, Lcom/xingbook/paint/PaintGameAct;->d()V

    goto :goto_0

    :sswitch_2
    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    invoke-virtual {v0}, Lcom/xingbook/paint/view/PaintView;->d()V

    invoke-direct {p0}, Lcom/xingbook/paint/PaintGameAct;->d()V

    goto :goto_0

    :sswitch_3
    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    invoke-virtual {v0}, Lcom/xingbook/paint/view/PaintView;->c()V

    invoke-direct {p0}, Lcom/xingbook/paint/PaintGameAct;->d()V

    goto :goto_0

    :sswitch_4
    invoke-direct {p0}, Lcom/xingbook/paint/PaintGameAct;->b()V

    goto :goto_0

    :sswitch_5
    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    invoke-virtual {v0, v2, v2}, Lcom/xingbook/paint/view/PaintView;->a(II)V

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->u:Landroid/view/View;

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    invoke-virtual {p1, v4}, Landroid/view/View;->setSelected(Z)V

    const v0, 0x7f0a01dd

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setSelected(Z)V

    const v0, 0x7f0a01de

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setSelected(Z)V

    invoke-virtual {p0, v6}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setSelected(Z)V

    goto :goto_0

    :sswitch_6
    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    invoke-virtual {v0, v4, v2}, Lcom/xingbook/paint/view/PaintView;->a(II)V

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->u:Landroid/view/View;

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    invoke-virtual {p1, v4}, Landroid/view/View;->setSelected(Z)V

    invoke-virtual {p0, v5}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setSelected(Z)V

    const v0, 0x7f0a01de

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setSelected(Z)V

    invoke-virtual {p0, v6}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setSelected(Z)V

    goto :goto_0

    :sswitch_7
    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    const/4 v1, 0x2

    invoke-virtual {v0, v1, v2}, Lcom/xingbook/paint/view/PaintView;->a(II)V

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->u:Landroid/view/View;

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    invoke-virtual {p1, v4}, Landroid/view/View;->setSelected(Z)V

    invoke-virtual {p0, v5}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setSelected(Z)V

    const v0, 0x7f0a01dd

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setSelected(Z)V

    invoke-virtual {p0, v6}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setSelected(Z)V

    goto/16 :goto_0

    :sswitch_8
    new-instance v0, Lcom/xingbook/paint/view/a;

    iget-object v1, p0, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    invoke-virtual {v1}, Lcom/xingbook/paint/view/PaintView;->getBackGroundColor()I

    move-result v1

    invoke-direct {v0, p0, p0, v1}, Lcom/xingbook/paint/view/a;-><init>(Landroid/content/Context;Lcom/xingbook/paint/view/d;I)V

    invoke-virtual {v0}, Lcom/xingbook/paint/view/a;->show()V

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->u:Landroid/view/View;

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    invoke-virtual {p1, v4}, Landroid/view/View;->setSelected(Z)V

    invoke-virtual {p0, v5}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setSelected(Z)V

    const v0, 0x7f0a01dd

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setSelected(Z)V

    const v0, 0x7f0a01de

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setSelected(Z)V

    goto/16 :goto_0

    :sswitch_9
    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->u:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->u:Landroid/view/View;

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    goto/16 :goto_0

    :cond_0
    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->t:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->u:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    goto/16 :goto_0

    :sswitch_a
    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->x:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->x:Landroid/view/View;

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    goto/16 :goto_0

    :cond_1
    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->x:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    goto/16 :goto_0

    nop

    :sswitch_data_0
    .sparse-switch
        0x7f0a01b1 -> :sswitch_0
        0x7f0a01b2 -> :sswitch_4
        0x7f0a01b3 -> :sswitch_1
        0x7f0a01b4 -> :sswitch_2
        0x7f0a01b5 -> :sswitch_3
        0x7f0a01cc -> :sswitch_9
        0x7f0a01db -> :sswitch_5
        0x7f0a01dc -> :sswitch_8
        0x7f0a01dd -> :sswitch_6
        0x7f0a01de -> :sswitch_7
        0x7f0a01df -> :sswitch_a
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 9

    const v8, 0x7f0a01b6

    const/4 v7, 0x1

    const/4 v6, 0x6

    const/high16 v5, 0x3fc0

    const/4 v1, 0x0

    const v0, 0x7f030030

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->setContentView(I)V

    new-instance v0, Landroid/util/DisplayMetrics;

    invoke-direct {v0}, Landroid/util/DisplayMetrics;-><init>()V

    invoke-virtual {p0}, Lcom/xingbook/paint/PaintGameAct;->getWindow()Landroid/view/Window;

    move-result-object v2

    invoke-virtual {v2}, Landroid/view/Window;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v2

    invoke-interface {v2}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v2

    invoke-virtual {v2, v0}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    iget v2, p0, Lcom/xingbook/paint/PaintGameAct;->r:I

    int-to-float v2, v2

    iget v0, v0, Landroid/util/DisplayMetrics;->density:F

    mul-float/2addr v0, v2

    float-to-int v0, v0

    iput v0, p0, Lcom/xingbook/paint/PaintGameAct;->r:I

    invoke-static {}, Lcom/xingbook/c/a;->a()Lcom/xingbook/c/a;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->f:Lcom/xingbook/c/a;

    new-instance v2, Lcom/xingbook/paint/g;

    invoke-direct {v2, p0}, Lcom/xingbook/paint/g;-><init>(Lcom/xingbook/paint/PaintGameAct;)V

    const v0, 0x7f0a01d2

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v3

    iget v4, p0, Lcom/xingbook/paint/PaintGameAct;->r:I

    mul-int/lit8 v4, v4, 0x4

    int-to-float v4, v4

    mul-float/2addr v4, v5

    float-to-int v4, v4

    iput v4, v3, Landroid/view/ViewGroup$LayoutParams;->width:I

    invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    iget v3, p0, Lcom/xingbook/paint/PaintGameAct;->r:I

    mul-int/lit8 v3, v3, 0x4

    int-to-float v3, v3

    mul-float/2addr v3, v5

    float-to-int v3, v3

    iput v3, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

    const v0, 0x7f0a01d3

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->p:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->p:Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    check-cast v0, Landroid/graphics/drawable/GradientDrawable;

    iput-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->n:Landroid/graphics/drawable/GradientDrawable;

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->p:Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout$LayoutParams;

    iput-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->o:Landroid/widget/LinearLayout$LayoutParams;

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->o:Landroid/widget/LinearLayout$LayoutParams;

    iget v3, p0, Lcom/xingbook/paint/PaintGameAct;->r:I

    iput v3, v0, Landroid/widget/LinearLayout$LayoutParams;->width:I

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->o:Landroid/widget/LinearLayout$LayoutParams;

    iget v3, p0, Lcom/xingbook/paint/PaintGameAct;->r:I

    iput v3, v0, Landroid/widget/LinearLayout$LayoutParams;->height:I

    const v0, 0x7f0a01d7

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/SeekBar;

    iput-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->q:Landroid/widget/SeekBar;

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->q:Landroid/widget/SeekBar;

    const/16 v3, 0xfa0

    invoke-virtual {v0, v3}, Landroid/widget/SeekBar;->setMax(I)V

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->q:Landroid/widget/SeekBar;

    iget-object v3, p0, Lcom/xingbook/paint/PaintGameAct;->A:Landroid/widget/SeekBar$OnSeekBarChangeListener;

    invoke-virtual {v0, v3}, Landroid/widget/SeekBar;->setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V

    const v0, 0x7f0a01b1

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0a01b3

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0a01b4

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0a01b5

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0a01b2

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    new-array v0, v6, [Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->b:[Landroid/widget/ImageView;

    const/4 v0, 0x7

    new-array v0, v0, [I

    iput-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->s:[I

    iget-object v3, p0, Lcom/xingbook/paint/PaintGameAct;->b:[Landroid/widget/ImageView;

    const v0, 0x7f0a01ba

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    aput-object v0, v3, v1

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->b:[Landroid/widget/ImageView;

    aget-object v0, v0, v1

    invoke-virtual {v0, v7}, Landroid/widget/ImageView;->setSelected(Z)V

    iget-object v3, p0, Lcom/xingbook/paint/PaintGameAct;->b:[Landroid/widget/ImageView;

    const v0, 0x7f0a01bd

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    aput-object v0, v3, v7

    iget-object v3, p0, Lcom/xingbook/paint/PaintGameAct;->b:[Landroid/widget/ImageView;

    const/4 v4, 0x2

    const v0, 0x7f0a01c0

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    aput-object v0, v3, v4

    iget-object v3, p0, Lcom/xingbook/paint/PaintGameAct;->b:[Landroid/widget/ImageView;

    const/4 v4, 0x3

    const v0, 0x7f0a01c3

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    aput-object v0, v3, v4

    iget-object v3, p0, Lcom/xingbook/paint/PaintGameAct;->b:[Landroid/widget/ImageView;

    const/4 v4, 0x4

    const v0, 0x7f0a01c6

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    aput-object v0, v3, v4

    iget-object v3, p0, Lcom/xingbook/paint/PaintGameAct;->b:[Landroid/widget/ImageView;

    const/4 v4, 0x5

    const v0, 0x7f0a01c9

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    aput-object v0, v3, v4

    move v0, v1

    :goto_0
    if-lt v0, v6, :cond_0

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->s:[I

    iget v3, p0, Lcom/xingbook/paint/PaintGameAct;->r:I

    int-to-float v3, v3

    mul-float/2addr v3, v5

    float-to-int v3, v3

    aput v3, v0, v6

    const v0, 0x7f0a01b9

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iget-object v3, p0, Lcom/xingbook/paint/PaintGameAct;->z:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0a01bb

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iget-object v3, p0, Lcom/xingbook/paint/PaintGameAct;->z:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0a01bc

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iget-object v3, p0, Lcom/xingbook/paint/PaintGameAct;->z:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0a01be

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iget-object v3, p0, Lcom/xingbook/paint/PaintGameAct;->z:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0a01bf

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iget-object v3, p0, Lcom/xingbook/paint/PaintGameAct;->z:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0a01c1

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iget-object v3, p0, Lcom/xingbook/paint/PaintGameAct;->z:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0a01c2

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iget-object v3, p0, Lcom/xingbook/paint/PaintGameAct;->z:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0a01c4

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iget-object v3, p0, Lcom/xingbook/paint/PaintGameAct;->z:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0a01c5

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iget-object v3, p0, Lcom/xingbook/paint/PaintGameAct;->z:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0a01c8

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iget-object v3, p0, Lcom/xingbook/paint/PaintGameAct;->z:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0a01ca

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iget-object v3, p0, Lcom/xingbook/paint/PaintGameAct;->z:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0a01ae

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->d:Landroid/widget/ImageView;

    const v0, 0x7f0a01ad

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->c:Landroid/widget/RelativeLayout;

    const v0, 0x7f0a01af

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/xingbook/paint/view/PaintView;

    iput-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->h:Lcom/xingbook/paint/view/PaintView;

    new-instance v3, Lcom/xingbook/paint/h;

    invoke-direct {v3, p0}, Lcom/xingbook/paint/h;-><init>(Lcom/xingbook/paint/PaintGameAct;)V

    invoke-virtual {v0, v3}, Lcom/xingbook/paint/view/PaintView;->setCallBack(Lcom/xingbook/paint/a/a/b;)V

    const v0, 0x7f0a01ce

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->t:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->t:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    const v0, 0x7f0a01cf

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->w:Landroid/widget/TextView;

    const v0, 0x7f0a01d1

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/GridView;

    iput-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->v:Landroid/widget/GridView;

    new-instance v0, Lcom/xingbook/paint/a;

    invoke-virtual {p0}, Lcom/xingbook/paint/PaintGameAct;->getApplicationContext()Landroid/content/Context;

    move-result-object v3

    iget-object v4, p0, Lcom/xingbook/paint/PaintGameAct;->a:[I

    invoke-direct {v0, v3, v4}, Lcom/xingbook/paint/a;-><init>(Landroid/content/Context;[I)V

    iget-object v3, p0, Lcom/xingbook/paint/PaintGameAct;->v:Landroid/widget/GridView;

    invoke-virtual {v3, v0}, Landroid/widget/GridView;->setAdapter(Landroid/widget/ListAdapter;)V

    iget-object v3, p0, Lcom/xingbook/paint/PaintGameAct;->a:[I

    aget v1, v3, v1

    invoke-direct {p0, v1}, Lcom/xingbook/paint/PaintGameAct;->c(I)V

    iget-object v1, p0, Lcom/xingbook/paint/PaintGameAct;->v:Landroid/widget/GridView;

    new-instance v3, Lcom/xingbook/paint/i;

    invoke-direct {v3, p0, v0}, Lcom/xingbook/paint/i;-><init>(Lcom/xingbook/paint/PaintGameAct;Lcom/xingbook/paint/a;)V

    invoke-virtual {v1, v3}, Landroid/widget/GridView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    const v0, 0x7f0a01d8

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->u:Landroid/view/View;

    iget-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->u:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    const v0, 0x7f0a01db

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0a01dd

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0a01dc

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0a01de

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0a01cc

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0a01df

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    invoke-virtual {p0, v8}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Lcom/xingbook/paint/j;

    invoke-direct {v1, p0}, Lcom/xingbook/paint/j;-><init>(Lcom/xingbook/paint/PaintGameAct;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    const v0, 0x7f0a01b0

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    const v0, 0x7f0a01b7

    invoke-virtual {p0, v0}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    invoke-virtual {p0, v8}, Lcom/xingbook/paint/PaintGameAct;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/paint/PaintGameAct;->x:Landroid/view/View;

    invoke-super {p0, p1}, Lcom/xingbook/park/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    return-void

    :cond_0
    iget-object v3, p0, Lcom/xingbook/paint/PaintGameAct;->b:[Landroid/widget/ImageView;

    aget-object v3, v3, v0

    iget-object v4, p0, Lcom/xingbook/paint/PaintGameAct;->z:Landroid/view/View$OnClickListener;

    invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v3, p0, Lcom/xingbook/paint/PaintGameAct;->s:[I

    iget v4, p0, Lcom/xingbook/paint/PaintGameAct;->r:I

    aput v4, v3, v0

    add-int/lit8 v0, v0, 0x1

    goto/16 :goto_0
.end method

.method protected onDestroy()V
    .locals 0

    invoke-virtual {p0}, Lcom/xingbook/paint/PaintGameAct;->a()V

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onDestroy()V

    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getKeyCode()I

    move-result v0

    const/4 v1, 0x4

    if-ne v0, v1, :cond_0

    invoke-direct {p0}, Lcom/xingbook/paint/PaintGameAct;->h()V

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method protected onPause()V
    .locals 1

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onPause()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onPause(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/paint/PaintGameAct;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->b(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->a(Landroid/content/Context;)V

    return-void
.end method

.method protected onResume()V
    .locals 1

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onResume()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onResume(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/paint/PaintGameAct;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->b(Landroid/content/Context;)V

    return-void
.end method
